using System;
using System.Collections.Generic;
using System.Text;
using NBusiness.Query;

namespace NBusiness.MySql.Query
{
    public class MySqlLessThan : MySqlBoolean
    {
        public bool OrEqual
        {
            get { return Operator == MySqlBooleanOperator.LessThanOrEqual; }
            set { Operator = (value ? MySqlBooleanOperator.LessThanOrEqual : MySqlBooleanOperator.LessThan); }
        }

        public MySqlLessThan()
            : base(MySqlBooleanOperator.LessThan)
        { }
        public MySqlLessThan(IEvaluatable left, IEvaluatable right)
            : this(left, right, false)
        { }
        public MySqlLessThan(IEvaluatable left, IEvaluatable right, bool orEqual)
            : base(left, (orEqual ? MySqlBooleanOperator.LessThanOrEqual : MySqlBooleanOperator.LessThan), right)
        { }
    }
}
